package meng.study.jaxb.entity;

import java.io.Serializable;
import java.util.Date;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "user")
@XmlType(propOrder = { "id", "name", "bir", "weight","head", })
public class User implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7740982091449549266L;
	//SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

	private int id;
	private String name;
	private Date bir;
	private double weight;
	private Head head;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getBir() {
		return bir;
	}

	public void setBir(Date bir) {
		this.bir = bir;
	}

	public double getWeight() {
		return weight;
	}

	public void setWeight(double weight) {
		this.weight = weight;
	}

	public Head getHead() {
		return head;
	}

	public void setHead(Head head) {
		this.head = head;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", name=" + name + ", bir=" + bir + ", weight=" + weight
				+ ", head=" + head + "]";
	}

}
